{% extends "myadmin/base.html" %} {% block mainbody %}
<h3>
        商品类别管理
    </h3>
<form id="edit-profile" action="{% url 'myadmin_type_insert' %}" class="form-horizontal" method="post">
    {% csrf_token %}
    <fieldset>
        <legend>添加商品类别</legend>
        <div class="control-group">
            <label class="control-label" for="input01">父类别类别名称：</label>
            <div class="controls">
                <input type="text" name="name" disabled class="input-xlarge" id="name" value="{{ name }}" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input01">商品类别名称：</label>
            <div class="controls">
                <input type="text" name="name" class="input-xlarge" id="name" value="" />
                <input type="hidden" name="pid" class="input-xlarge" value="{{ pid }}" />
                <input type="hidden" name="path" class="input-xlarge" value="{{ path }}" />
            </div>
        </div>
        <div class="form-actions">
            <button type="submit" class="btn btn-primary">添加</button>
            <button type="reset" class="btn">重置</button>
        </div>
    </fieldset>
</form>
{% endblock %}